import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

const index = r => require.ensure([], () => r(require('asset/index.vue')), 'index');

//懒加载路由
const routes = [
  {
    path:'/',
    component:index
  },
  {
    path:'/home',
    component:index
  },
];

const router = new Router({
  routes
});

export default router;
